worker_processes 1;

events { worker_connections 1024; }

http {
    upstream flask_servers {
        server flask_flask_app1:5000; 
        server flask_flask_app2:5000; 
    }

    server {
        listen 80;

        location / {
            proxy_pass http://flask_servers;
        }
    }
}
